package ch.zbw.swt.sysventory.ui;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

import IMG.GetPath;

public class ErrorScan {

	private JFrame frame;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ErrorScan window = new ErrorScan();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public ErrorScan() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.getContentPane().setBackground(Color.WHITE);
		frame.setBounds(100, 100, 281, 203);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		ImageIcon errorImg;		
		errorImg = new ImageIcon(
				GetPath.class.getResource("Alert.png"));
		
		JLabel lblNewLabel = new JLabel(errorImg);
		lblNewLabel.setBounds(101, 11, 63, 58);
		frame.getContentPane().add(lblNewLabel);
		
		JLabel lblScanFehlgeschlagen = new JLabel("Scan Fehlgeschlagen");
		lblScanFehlgeschlagen.setFont(new Font("Arial", Font.PLAIN, 16));
		lblScanFehlgeschlagen.setBounds(58, 78, 245, 41);
		frame.getContentPane().add(lblScanFehlgeschlagen);
		
		JLabel lblberprfenSieIhre = new JLabel("Überprüfen Sie Ihre Eingabe");
		lblberprfenSieIhre.setFont(new Font("Arial", Font.PLAIN, 11));
		lblberprfenSieIhre.setBounds(68, 124, 135, 14);
		frame.getContentPane().add(lblberprfenSieIhre);
	}

}
